.class Lcom/netease/newsreader/activity/ShowBigPic$1;
.super Landroid/os/Handler;
.source "ShowBigPic.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/ShowBigPic;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/ShowBigPic;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/ShowBigPic;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    .line 192
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/ShowBigPic$1;)Lcom/netease/newsreader/activity/ShowBigPic;
    .locals 1
    .parameter

    .prologue
    .line 192
    iget-object v0, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    return-object v0
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6
    .parameter "msg"

    .prologue
    const/4 v3, 0x0

    .line 197
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 198
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    .line 237
    :goto_0
    return-void

    .line 200
    :pswitch_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$0(Lcom/netease/newsreader/activity/ShowBigPic;)V

    .line 201
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$1(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/graphics/Bitmap;

    move-result-object v2

    monitor-enter v2

    .line 202
    :try_start_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$2(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/ImageView;

    move-result-object v1

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v3}, Lcom/netease/newsreader/activity/ShowBigPic;->access$1(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/graphics/Bitmap;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 203
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$3(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$3(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v1

    const-string v3, ""

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 204
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$4(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/TextView;

    move-result-object v1

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setVisibility(I)V

    .line 205
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$3(Lcom/netease/newsreader/activity/ShowBigPic;)Ljava/lang/String;

    move-result-object v0

    .line 206
    .local v0, t:Ljava/lang/String;
    const/4 v1, 0x1

    iget-object v3, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    iget v3, v3, Lcom/netease/newsreader/activity/ShowBigPic;->screentype:I

    if-ne v1, v3, :cond_0

    .line 207
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v3, 0x16

    if-le v1, v3, :cond_0

    new-instance v1, Ljava/lang/StringBuilder;

    const/4 v3, 0x0

    const/16 v4, 0x14

    invoke-virtual {v0, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, ".."

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 208
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$4(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 214
    .end local v0           #t:Ljava/lang/String;
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$5(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/LinearLayout;

    move-result-object v1

    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 215
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$6(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/os/Handler;

    move-result-object v1

    new-instance v3, Lcom/netease/newsreader/activity/ShowBigPic$1$1;

    invoke-direct {v3, p0}, Lcom/netease/newsreader/activity/ShowBigPic$1$1;-><init>(Lcom/netease/newsreader/activity/ShowBigPic$1;)V

    invoke-virtual {v1, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 201
    monitor-exit v2

    goto/16 :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 224
    :pswitch_1
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    const-string v2, "\u6253\u5f00\u56fe\u7247\u5931\u8d25\uff01"

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 225
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-static {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->access$2(Lcom/netease/newsreader/activity/ShowBigPic;)Landroid/widget/ImageView;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/ImageView;->performClick()Z

    .line 226
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    invoke-virtual {v1}, Lcom/netease/newsreader/activity/ShowBigPic;->finish()V

    goto/16 :goto_0

    .line 229
    :pswitch_2
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    const-string v2, "\u6210\u529f\u4e0b\u8f7d\u5230\u76f8\u518c\uff01"

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 230
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    new-instance v2, Landroid/content/Intent;

    const-string v3, "android.intent.action.MEDIA_MOUNTED"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "file://"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 231
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 230
    invoke-static {v4}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v4

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/ShowBigPic;->sendBroadcast(Landroid/content/Intent;)V

    goto/16 :goto_0

    .line 234
    :pswitch_3
    iget-object v1, p0, Lcom/netease/newsreader/activity/ShowBigPic$1;->this$0:Lcom/netease/newsreader/activity/ShowBigPic;

    const-string v2, "\u4e0b\u8f7d\u56fe\u7247\u5931\u8d25\uff01"

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto/16 :goto_0

    .line 198
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method
